import requests
class AddEmp(object):
    def add_emp(self,head_data,emp_data):
        resp=requests.post(url="http://ihrm2-test.itheima.net/api/sys/user",headers=head_data,json=emp_data)
        return resp

if __name__ == '__main__':
    add=AddEmp()
    head_data = {"Authorization": "8114d6f4-40b8-402f-bee9-75173f7d4ac0"}
    emp_data = {"username": "旭旭宝宝", "mobile": "15512316126", "workNumber": "9527"}
    resp=add.add_emp(head_data,emp_data)
    print(resp.json())
